package main

import "fmt"

type Human struct {
	name  string
	age   int
	score float64
}

func (h Human) description() {
	fmt.Println("human", h.name, "age", h.age)

}

//嵌套变量

type Student struct {
	base   Human
	number string
}

//类的继承,没有字段名的

type Teacher struct {
	Human
	subject string
}

func main() {
	zs := Teacher{}
	zs.name = "zs"
	fmt.Println(zs)
}
